package top.tangyh.lamp.care.common;

public enum ExeYaoOperaTypeEnum {
    /**
     * 保存
     */
    SAVE("save", "保存"),
    EXE_NOW("exeNow", "立即执行");

    private String operaType;
    private String operaName;

    ExeYaoOperaTypeEnum(String operaType,String operaName) {
        this.operaType = operaType;
        this.operaName = operaName;
    }

    public String getOperaType() {
        return operaType;
    }

    public void setOperaType(String operaType) {
        this.operaType = operaType;
    }

    public String getOperaName() {
        return operaName;
    }

    public void setOperaName(String operaName) {
        this.operaName = operaName;
    }

    public static ExeYaoOperaTypeEnum forValue(String operaType) {
        for (ExeYaoOperaTypeEnum value : values()) {
            if (value.getOperaType().equals(operaType)) {
                return value;
            }
        }
        return null;
    }

}
